#!/bin/bash
if [ "ok"="ok" ]
then
  echo "ok=ok"
fi

if [ 23 -ge 22 ]
then
  echo "23大于22"
fi

if [ -f /root/shcode/aaa.txt ]
then
  echo "/root/shcode/aaa.txt文件存在"
else
  echo "/root/shcode/aaa.txt文件不存在"
fi

if [ 23 -ge 22 ]
then
  echo "23大于22"
elif [ 23 -le 22 ]
then
  echo "if-else的嵌套"
fi
